public class Solution {
    public static int[] multiply(int[] a) {
        if(a.length==0) return null;
        int[] b = new int[a.length];
        int[] c = new int[a.length];
        int[] d = new int[a.length];

        c[0] = 1;
        for(int i=1; i<a.length;i++){
            c[i] = c[i-1]*a[i-1];
        }
        d[a.length-1]=1;
        for(int i=a.length-2; i>=0; i--){
            d[i] = d[i+1]*a[i+1];
        }
        for(int i=0; i<a.length; i++){
            b[i] = c[i]*d[i];
        }
        return b;
    }
    public static void main(String args[]){
        int[] numbers = {};
        int[] b = multiply(numbers);
        System.out.println(b);
    }
}

